<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)</TargetFrameworks>
    <RootNamespace>System.Drawing</RootNamespace>
    <UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile>
  </PropertyGroup>

  <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
  <PropertyGroup>
    <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
    <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'windows'">$(DefineConstants);FEATURE_WINDOWS_SYSTEM_COLORS</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="System\Drawing\KnownColorNames.cs" />
    <Compile Include="System\Drawing\Point.cs" />
    <Compile Include="System\Drawing\PointF.cs" />
    <Compile Include="System\Drawing\Rectangle.cs" />
    <Compile Include="System\Drawing\RectangleF.cs" />
    <Compile Include="System\Drawing\Size.cs" />
    <Compile Include="System\Drawing\SizeF.cs" />
    <Compile Include="System\Drawing\Color.cs" />
    <Compile Include="System\Drawing\ColorTranslator.cs" />
    <Compile Include="System\Drawing\KnownColor.cs" />
    <Compile Include="System\Drawing\KnownColorTable.cs" />
    <Compile Include="System\Drawing\SystemColors.cs" />
    <Compile Include="$(CommonPath)System\Drawing\ColorConverterCommon.cs"
             Link="System\Drawing\ColorConverterCommon.cs" />
    <Compile Include="$(CommonPath)System\Drawing\ColorTable.cs"
             Link="System\Drawing\ColorTable.cs" />
  </ItemGroup>

  <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'">
    <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs"
             Link="Common\Interop\Windows\Interop.Libraries.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\User32\Interop.GetSysColor.cs"
             Link="Common\Interop\Windows\User32\Interop.GetSysColor.cs" />
    <Compile Include="$(CommonPath)Interop\Windows\User32\Interop.Win32SystemColors.cs"
             Link="Common\Interop\Windows\User32\Interop.Win32SystemColors.cs" />
  </ItemGroup>

  <ItemGroup>
    <Reference Include="System.Collections" />
    <Reference Include="System.ComponentModel.Primitives" />
    <Reference Include="System.Memory" />
    <Reference Include="System.Numerics.Vectors" />
    <Reference Include="System.ObjectModel" />
    <Reference Include="System.Runtime" />
    <Reference Include="System.Runtime.InteropServices" />
  </ItemGroup>

</Project>
